home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / rsxwdk2s.zip / RSXWDK / LIBSRC / SYSEMX / CHMOD.C < prev    next >
C/C++ Source or Header  |  1994-10-18  |  207b  |  11 lines

  1. #include <sys/emx.h>
  2. #include <sys/doscalls.h>
  3.  
  4. int __chmod (const char *name, int flag, int attr)
  5. {
  6.     if (flag)
  7.     return dos_setfattr (name, attr);
  8.     else
  9.     return dos_getfattr (name, &attr);
  10. }
  11.